package com.hm.oltu.def;

/**
 * @author shishun.wang
 * @date 上午10:06:54 2016年8月30日
 * @version 1.0
 * @describe
 */
public interface OauthDef {

	public String INVALID_CLIENT_ID = "客户端验证失败，如错误的client_id/client_secret。";

	public String CHECK_ACCESS_CODE_URL = "http://localhost:10000/checkAccessToken?accessToken=";

	public String REQUEST_METHOD = "POST";

	public String RESOURCE_SERVER_NAME = "OAUTH-SERVER";

	public String INVALID_ACCESS_TOKEN = "accessToken无效或已过期。";

	public String LOGIN_USERNAME = "username";

	public String LOGIN_PASSWORD = "password";

	public String USERNAME_OR_PASSWORD_EMPTY = "用户名或密码不能为空";

	public String PARAM_ERROR = "参数错误";

	public String REQUEST_ERROR = "请求错误";

	public String RESPONSE_ERROR = "响应错误";

	public String OTHER_ERROR = "其他错误,请联系管理员";

	public String NOTFOUND_USERNAME = "{0},该用户不存在";

	public String PASSWORD_ERROR = "{0},该用户密码错误";

	public String RESPONSE_TYPE_ERROR = "客户端响应类型错误,目前支持Code类型,类似responseType=code";

	public String CALLBACK_URL_NOT_FOUND = "缺少授权成功后的回调地址";

	public String INVALID_AUTH_CODE = "错误的授权码。";

	public interface DB {

		public String PREFIX = "hm_oauth_";
	}

	public interface Api {

		public String PREFIX = "api";

		public interface UserApi {

			public String REST = PREFIX + "/restful";

			public String VERSION = REST + "/v1";

			public String USER_FINFO = VERSION + "/userinfo";
		}

	}
}
